<?php
//=======================================
//###################################
// Kayako Web Solutions
//
// Source Copyright 2001-2004 Kayako Infotech Ltd.
// Unauthorized reproduction is not allowed
// License Number: $%LICENSE%$
// $Author: vshoor $ ($Date: 2005/08/15 21:53:49 $)
// $RCSfile: staff_reports.php,v $ : $Revision: 1.4 $ 
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
//###################################
//=======================================

if (!defined("INSWIFT")) {
	trigger_error("Unable to process $PHP_SELF", E_USER_ERROR);
}

if ($_SWIFT["staff"]["t_entab"] == "0")
{
	echo '<font face="Verdana, Arial, Helvetica" size="2" color="red"><b>'.$_SWIFT["language"]["nopermission"].'</b></font>';
	exit;
}

require_once ("./includes/functions_html.php");
require_once ("./includes/data_mimelist.php");
$grid = new Grid();
$template->loadLanguageSection("staff_tickets");
$template->loadLanguageSection("ticketreports");
require_once ("./modules/tickets/functions_ticketsui.php");
require_once ("./modules/tickets/functions_reports.php");
require_once ("./modules/tickets/functions_sla.php");

$interface->assignQuickLink($_SWIFT["language"]["repworksummary"], "index.php?_m=tickets&_a=reports&type=worksummary", "icon_reports.gif");
$interface->assignQuickLink($_SWIFT["language"]["repsla"], "index.php?_m=tickets&_a=reports&type=sla", "icon_reports.gif");
$interface->assignQuickLink($_SWIFT["language"]["represponse"], "index.php?_m=tickets&_a=reports&type=response", "icon_reports.gif");

/**
* ###############################################
* WORK SUMMARY
* ###############################################
*/
if ($_REQUEST["type"] == "worksummary")
{

	require_once ("./modules/tickets/report_worksummary.php");


/**
* ###############################################
* RESPONSE TIME
* ###############################################
*/
} else if ($_REQUEST["type"] == "response") {

	require_once ("./modules/tickets/report_responsetime.php");



/**
* ###############################################
* PERFORMANCE
* ###############################################
*/
} else if ($_REQUEST["type"] == "performance") {

	require_once ("./modules/tickets/report_performance.php");




/**
* ###############################################
* ASSIGNMENT
* ###############################################
*/
} else if ($_REQUEST["type"] == "assignment") {

	require_once ("./modules/tickets/report_assignment.php");



/**
* ###############################################
* SLA
* ###############################################
*/
} else if ($_REQUEST["type"] == "sla") {

	require_once ("./modules/tickets/report_sla.php");



/**
* ###############################################
* DEPARTMENT SUMMARY
* ###############################################
*/
} else if ($_REQUEST["type"] == "department") {

	require_once ("./modules/tickets/report_department.php");



}




?>